/**
 * Copyright 2010 Pavel Daniel Alexandru PFA
 * 
 * Licensed under the terms of the GNU Lesser General Public License version 3 
 * as published by the Free Software Foundation. You may obtain a copy of the
 * License at: http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations 
 * under the License. 
 */
package com.kobol.webclient.client.model;

import com.smartgwt.client.widgets.grid.ListGridRecord;

/**
 * @author Pavel Alexandru
 * 
 */
public class ActivityRecord extends ListGridRecord {

    private static final String ICON = "icon";
    private static final String ACTIVITY_TYPE = "activityType";
    private static final String SUBJECT = "subject";
    private static final String REGARDING = "regarding";
    private static final String PRIORITY = "priority";
    private static final String START_DATE = "startDate";
    private static final String DUE_DATE = "dueDate";

    public ActivityRecord() {
    }

    public ActivityRecord(String icon, String activityType, String subject, String regarding, String priority,
	    String startDate, String dueDate) {
	setIcon(icon);
	setActivityType(activityType);
	setSubject(subject);
	setRegarding(regarding);
	setPriority(priority);
	setStartDate(startDate);
	setDueDate(dueDate);
    }

    public void setIcon(String icon) {
	setAttribute(ICON, icon);
    }

    public void setActivityType(String activityType) {
	setAttribute(ACTIVITY_TYPE, activityType);
    }

    public void setSubject(String subject) {
	setAttribute(SUBJECT, subject);
    }

    public void setRegarding(String regarding) {
	setAttribute(REGARDING, regarding);
    }

    public void setPriority(String priority) {
	setAttribute(PRIORITY, priority);
    }

    public void setStartDate(String startDate) {
	setAttribute(START_DATE, startDate);
    }

    public void setDueDate(String dueDate) {
	setAttribute(DUE_DATE, dueDate);
    }

    public String getIcon() {
	return getAttributeAsString(ICON);
    }

    public String getActivityType() {
	return getAttributeAsString(ACTIVITY_TYPE);
    }

    public String getSubject() {
	return getAttributeAsString(SUBJECT);
    }

    public String getRegarding() {
	return getAttributeAsString(REGARDING);
    }

    public String getPriority() {
	return getAttributeAsString(PRIORITY);
    }

    public String getStartDate() {
	return getAttributeAsString(START_DATE);
    }

    public String getDueDate() {
	return getAttributeAsString(DUE_DATE);
    }
}
